package com.xue566.enums;

/**
 * @Author: Wuzh
 * @Description:
 * @Date Created in 21:44 2020/8/5
 * @return
 */
public enum StateEnum {

    SUCCESS("000000", "执行成功"),
    PRIMARY_KEY_EXCE("000001", "主键为空异常"),
    REQUEST_PARAM_EXCE("000002", "请求参数异常"),
    TRACK_NULL_EXCE("000003", "日志追踪号为空异常"),
    INSERT_EXCE("000004", "插入记录失败异常"),
    UPDATE_EXCE("000005", "修改记录失败异常"),
    DELETE_EXCE("000006", "删除记录失败异常"),
    SELECT_NULL_EXCE("000007", "查询记录为空异常"),
    ILLEGALARGUMENT_EXCE("000008", "参数不合法异常"),
    SIGN_NOT_MATCH_EXCE("000009", "签名不匹配异常"),
    ERROR("999999", "系统错误");

    private String code;
    private String message;

    StateEnum (String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode () {
        return code;
    }

    public void setCode (String code) {
        this.code = code;
    }

    public String getMessage () {
        return message;
    }

    public void setMessage (String message) {
        this.message = message;
    }
}
